<? /** @var Application_Model_Travel $model */ ?>
<? $model = $this->model ?>
<div>
    <input class="input-block-level" type="hidden" value="<?= $model->getId()?>" name="travel-id" id="travel-id">
    <label for="travel-title">Заголовок:</label>
    <input class="input-block-level" type="text" value="<?= $model->getTitle()?>" placeholder="Заголовок" name="travel-title" id="travel-title">
    <label for="travel-description">Описание:</label>
    <input class="input-block-level" type="text" style="height:200px;"  value="<?= $model->getDesc() ?>" placeholder="Описание" name="travel-description" id="travel-content">

    <div class="form-actions">
        <button type="submit" class="btn btn-primary" onclick="travel.save();">Сохранить</button>
        <button type="button" class="btn" onclick="travel.deleteTravel(<?= $model->getId() ?>);">Удалить</button>
    </div>
</div>
<script type="text/javascript">
    (function(){
        $('#travel-content').redactor();
    }());
</script>